<%@ page import="cn.gudian.cms.System.Sys; cn.gudian.cms.utils.DateUtil" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta name="layout" content="style"/>
  <title>古滇科技 - 留言板</title>
     %{--关键词--}%
  <gd:head/>
  <script src="/scripts/swfobject_modified.js" type="text/javascript"></script>
  <script language="JavaScript" type="text/javascript">
    function check() {
      if (document.getElementById("name").value == "请输入姓名" || document.getElementById("name").value == "") {
        alert("名称不能为空");
        return false
      }
      if (document.getElementById("content").value == "请输入详细内容" || document.getElementById("content").value == "") {
        alert("内容不能为空");
        return false
      }

    }
  </script>

</head>
<body>
<div style="display: none;">${Sys.getValue("SITE_KEYWORDS")}</div>
<div class="index">
<!-- header -->
<g:render template="/cTemplate/menu"/>
<!-- banner -->
<div>
  <div style="background-color: #761D75;">
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="310" id="FlashID" title="欢迎光临古滇科技官方博客">
      <param name="movie" value="/flash/service1.swf"/>
      <param name="quality" value="high"/>
      <param name="wmode" value="transparent"/>
      <param name="swfversion" value="6.0.65.0"/>
      <!-- 此 param 标签提示使用 Flash Player 6.0 r65 和更高版本的用户下载最新版本的 Flash Player。如果您不想让用户看到该提示，请将其删除。 -->
      <param name="expressinstall" value="/Scripts/expressInstall.swf"/>
      <!-- 下一个对象标签用于非 IE 浏览器。所以使用 IECC 将其从 IE 隐藏。 -->
      <!--[if !IE]>-->
      <object type="application/x-shockwave-flash" data="/flash/service1.swf" width="900" height="310">
        <!--<![endif]-->
        <param name="quality" value="high"/>
        <param name="wmode" value="transparent"/>
        <param name="swfversion" value="6.0.65.0"/>
        <param name="expressinstall" value="/Scripts/expressInstall.swf"/>
        <!-- 浏览器将以下替代内容显示给使用 Flash Player 6.0 和更低版本的用户。 -->
        <div>
          <h4>此页面上的内容需要较新版本的 Adobe Flash Player。</h4>
          <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="获取 Adobe Flash Player" width="112" height="33"/></a></p>
        </div>
        <!--[if !IE]>-->
      </object>
      <!--<![endif]-->
    </object>
  </div>
</div>
<!-- indexMain -->
<div class="indexMain">
  <div class="guestBook">
    <br/><br/>
    <img src="/images/liuyanban-text.gif" alt="我们能为您做什么"/>
     <g:each in="${guestBookInstanceList}" status="i" var="guestBookInstance">
    <div class="text">
       <ul class="ul-a1">
       <li class="li-a2">${guestBookInstance?.name}用户问：${guestBookInstance?.content}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${DateUtil.dateToString(guestBookInstance?.subTime,"yyyy-MM-dd")}</li>
      <g:if test="${guestBookInstance.reContet}">   <li class="li-a1">古滇回复：${guestBookInstance?.reContet}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${DateUtil.dateToString(guestBookInstance?.reTime,"yyyy-MM-dd")}</li>   </g:if>
       </ul>
   </div>
           </g:each>
    <div class="next-text"><g:paginate total="${guestBookInstanceTotal}" maxsteps="1"/></div>
    <form action="/guestBook/save" method="post" onSubmit="return check();">
      <input name="name" type="text" id="name" value="请输入姓名" class="input-name" onFocus="if (this.value == '请输入姓名')this.value = ''" onBlur="if (this.value == '')this.value = '请输入姓名'"/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="contact" type="text" id="contact" value="请输入联系方式" class="input-name" onFocus="if (this.value == '请输入联系方式')this.value = ''" onBlur="if (this.value == '')this.value = '请输入联系方式'"/>&nbsp;&nbsp;&nbsp;&nbsp;<font color="red">${flash.message}</font><br/> <textarea name="content" id="content" class="input-Content" cols="97" rows="5" onFocus="if (this.value == '请输入详细内容')this.value = ''" onBlur="if (this.value == '')this.value = '请输入详细内容'">请输入详细内容</textarea>
      &nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;<input type="image" src="/images/liuyanban-btn.jpg" width="173" height="71" alt="提交留言"/> <br/><br/>    <g:hiddenField name="reName"/>
      <g:hiddenField name="reContet"/></form>
  </div>
</div>
<script type="text/javascript">
  <!--
  swfobject.registerObject("FlashID");
  //-->
</script>
   <!-- footer -->
  <g:render template="/cTemplate/foot"/>

</div>
</body>
</html>